1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

(libT) #4633 fix win32 regression introduced in r13752.

This commit is contained in:
Jordan Lee 2013-01-04 19:47:01 +00:00
parent 10b96f0f12
commit 9a70ffb4ee

View file

@ -1988,7 +1988,7 @@ torrentCallScript (const tr_torrent * tor, const char * script)
tr_torinf (tor, "Calling script \"%s\"", script); tr_torinf (tor, "Calling script \"%s\"", script);
#ifdef WIN32 #ifdef WIN32
if (spawnvpe (_P_NOWAIT, script, (const char*)cmd, env) == -1) if (_spawnvpe (_P_NOWAIT, script, (const char*)cmd, env) == -1)
tr_torerr (tor, "error executing script \"%s\": %s", cmd[0], tr_strerror (errno)); tr_torerr (tor, "error executing script \"%s\": %s", cmd[0], tr_strerror (errno));
#else #else
signal (SIGCHLD, onSigCHLD); signal (SIGCHLD, onSigCHLD);