/[LeafOK_CVS]/lbbs/src/init.c
ViewVC logotype

Diff of /lbbs/src/init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.19 by sysadm, Tue May 13 07:30:10 2025 UTC Revision 1.20 by sysadm, Tue May 13 11:32:01 2025 UTC
# Line 34  int init_daemon(void) Line 34  int init_daemon(void)
34    
35          pid = fork();          pid = fork();
36    
37          if (pid != 0) // Parent or error          if (pid > 0) // Parent process
38          {          {
39                  return pid;                  _exit(0);
40            }
41            else if (pid < 0) // error
42            {
43                    _exit(pid);
44          }          }
45    
46          // Child process          // Child process
# Line 44  int init_daemon(void) Line 48  int init_daemon(void)
48    
49          pid = fork();          pid = fork();
50    
51          if (pid != 0) // Parent or error          if (pid > 0) // Parent process
52            {
53                    _exit(0);
54            }
55            else if (pid < 0) // error
56          {          {
57                  return pid;                  _exit(pid);
58          }          }
59    
60          // Child process          // Child process


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1