Branch: Tag:

2015-09-06

2015-09-06 19:43:42 by Martin Nilsson <nilsson@fastmail.com>

Cosmetic update of strerror use.

1034: Inside #if undefined(__NT__) and #if constant(fork) && constant(exece)
   {    if(cwd && !cd(cwd))    { -  error( "pike: cannot change cwd to "+cwd+ -  ": "+strerror(errno())+"\n" ); +  error( "pike: cannot change cwd to %O: %m.\n", cwd );    }       if (sizeof(fdp)>0 && fdp[0]) fdp[0]->dup2(Stdio.File("stdin"));
1054: Inside #if undefined(__NT__) and #if constant(fork) && constant(exece)
   else    exece(cmd,args||({}));    -  error( "pike: failed to exece "+cmd+ -  ": "+strerror(errno())+"\n" ); +  error( "pike: failed to exece %O: %m.\n", cmd );    };       pied->write(encode_value(err));
1215:    };       if (low_daemon(nochdir, noclose) == -1) -  error("Failed to daemonize: " + strerror(errno())+"\n"); +  error("Failed to daemonize: %m.\n");    if (!modifiers)    return;