Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1745821338, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ {"schema":"libjg2-1", "cid":"f1f90ddc541f064948c36d6fcb8a9c4d", "commit": {"type":"commit", "time": 1464843613, "time_ofs": 480, "oid_tree": { "oid": "6eacf2fb86037b06a0396bfe68f7ba112810704a", "alias": []}, "oid":{ "oid": "eda447e74a1eef42bdc839cadde5a6c7ea6efa49", "alias": []}, "msg": "Revert changes in daemonize.c from commit 22d6f39e7fb270d0c011bae820d2f8adc8b19061", "sig_commit": { "git_time": { "time": 1464843613, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1464808364, "offset": -420 }, "name": "Martin C Drohmann", "email": "martin@connectedsignals.com", "md5": "21d97150779ac4c6ccb1e462a2f9b664" }}, "body": "Revert changes in daemonize.c from commit 22d6f39e7fb270d0c011bae820d2f8adc8b19061\n" , "diff": "diff --git a/lib/daemonize.c b/lib/daemonize.c\nindex e916294..73b2d58 100644\n--- a/lib/daemonize.c\n+++ b/lib/daemonize.c\n@@ -142,9 +142,20 @@ lws_daemonize(const char *_lock_path)\n \t\texit(9);\n \t}\n \n-\t/* If we got a good PID, then we can exit the parent process. */\n-\tif (pid_daemon \u003e 0)\n-\t\texit(0);\n+ /* If we got a good PID, then we can exit the parent process. */\n+\tif (pid_daemon \u003e 0) {\n+\n+ /*\n+ * Wait for confirmation signal from the child via\n+ * SIGCHILD / USR1, or for two seconds to elapse\n+ * (SIGALRM). pause() should not return.\n+ */\n+ alarm(2);\n+\n+ pause();\n+ /* should not be reachable */\n+ exit(1);\n+ }\n \n \t/* At this point we are executing as the child process */\n \tparent \u003d getppid();\n","s":{"c":1745821338,"u": 713}} ],"g": 2028,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}