Software /
code /
prosody
Comparison
util-src/pposix.c @ 588:e743cb742ca6
Remove some debugging from pposix.c
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 06 Dec 2008 23:22:35 +0000 |
parent | 586:b828d7d47973 |
child | 722:63456c9d0522 |
comparison
equal
deleted
inserted
replaced
587:43f509a1519a | 588:e743cb742ca6 |
---|---|
51 return 2; | 51 return 2; |
52 } | 52 } |
53 else if(pid != 0) | 53 else if(pid != 0) |
54 { | 54 { |
55 /* We are the parent process */ | 55 /* We are the parent process */ |
56 printf("We are the parent, pid of child is %d\n", (int)pid); | |
57 lua_pushboolean(L, 1); | 56 lua_pushboolean(L, 1); |
58 lua_pushnumber(L, pid); | 57 lua_pushnumber(L, pid); |
59 return 2; | 58 return 2; |
60 } | 59 } |
61 | 60 |
62 printf("We are the child, pid reports %d\n", (int)pid); | |
63 /* and we are the child process */ | 61 /* and we are the child process */ |
64 if(setsid() == -1) | 62 if(setsid() == -1) |
65 { | 63 { |
66 /* We failed to become session leader */ | 64 /* We failed to become session leader */ |
67 /* (we probably already were) */ | 65 /* (we probably already were) */ |