Displaying 1 result from an estimated 1 matches for "parent_is_ready".
2003 Nov 12
0
smbmount patch
...hildren to wake up
after sys_fork() when parent exits from it too.
So, this is the patch to smbmount.c:
--- a/source/client/smbmount.c 2002-04-30 16:26:19.000000000 +0300
+++ b/source/client/smbmount.c 2003-11-12 08:13:41.580181864 +0200
@@ -59,6 +59,11 @@
exit(0);
}
+static void parent_is_ready(int sig)
+{
+ /* just continue to execute - parent is ready to die :)) */
+}
+
static void daemonize(void)
{
int j, status;
@@ -72,6 +77,12 @@
if (child_pid > 0) {
while( 1 ) {
+ /*
+ * Funny, isn't it? ;))...