#! /bin/sh /usr/share/dpatch/dpatch-run ## 61_init_msg.dpatch by Petter Reinholdtsen ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Improve error message if fork() fail. Patch found in Suse. @DPATCH@ Index: sysvinit/src/init.c =================================================================== --- sysvinit/src/init.c (revisjon 62) +++ sysvinit/src/init.c (arbeidskopi) @@ -967,7 +967,8 @@ dup(f); } if ((pid = fork()) < 0) { - initlog(L_VB, "cannot fork"); + initlog(L_VB, "cannot fork: %s", + strerror(errno)); exit(1); } if (pid > 0) { @@ -997,7 +998,8 @@ * this with a temporary process. */ if ((pid = fork()) < 0) { - initlog(L_VB, "cannot fork"); + initlog(L_VB, "cannot fork: %s", + strerror(errno)); exit(1); } if (pid == 0) {