Index: suspend.c =================================================================== RCS file: /cvsroot/suspend/suspend/suspend.c,v retrieving revision 1.33 diff -u -p -r1.33 suspend.c --- suspend.c 21 Mar 2006 20:44:31 -0000 1.33 +++ suspend.c 24 Mar 2006 18:55:52 -0000 @@ -831,6 +830,10 @@ int main(int argc, char *argv[]) dev_t resume_dev; int orig_loglevel, ret = 0; + /* Easy way to make sure that stdin, stdout and stderr are open + so that later printfs wont go to our suspend partition */ + while((unsigned)open("/dev/null", O_RDWR)<2); + if (get_config("suspend", argc, argv, PARAM_NO, parameters, resume_dev_name)) return EINVAL; if (compute_checksum != 'y' && compute_checksum != 'Y')