Modify ↓
Opened at 2010-03-25T17:28:13Z
Closed at 2010-04-13T22:21:19Z
#581 closed defect (fixed)
ForkDaemon misses setsid() call
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.6 |
| Component: | BitlBee | Version: | 1.2.5 |
| Keywords: | Cc: | ||
| IRC client+version: | Client-independent | Operating System: | Public server |
| OS version/distro: |
Description
After we call fork(), we must call setsid() to disassociate the service from its controlling TTY.
--- bitlbee.c +++ bitlbee.c @@ -106,6 +106,7 @@
else if( i != 0 )
exit( 0 );
+ setsid();
chdir( "/" );
if( getenv( "_BITLBEE_RESTART_STATE" ) == NULL )
Attachments (1)
Change History (3)
Changed at 2010-03-25T17:29:17Z by
| Attachment: | bitlbee.txt added |
|---|
comment:1 Changed at 2010-04-12T00:09:57Z by
| Milestone: | → 1.2.6 |
|---|
comment:2 Changed at 2010-04-13T22:21:19Z by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.

Proper diff