diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-02-20 22:50:26 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-02-20 22:50:26 +0200 |
commit | 5ba46aeec2900c23a0c260093daf56180f1180c0 (patch) | |
tree | 0c1eb28f924ac3d112114a2a24558c86399068b0 /src | |
parent | 46130027d8e6e91951226456174e6ad471ddc50f (diff) | |
download | pies-5ba46aeec2900c23a0c260093daf56180f1180c0.tar.gz pies-5ba46aeec2900c23a0c260093daf56180f1180c0.tar.bz2 |
Bugfix
* src/pies.c (main): Use pies_master_argv when restarting.
Diffstat (limited to 'src')
-rw-r--r-- | src/pies.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2218,7 +2218,7 @@ main (int argc, char **argv) switch (action) { case ACTION_RESTART: - if (argv[0][0] != '/' || init_process) + if (pies_master_argv[0][0] != '/' || init_process) { logmsg (LOG_INFO, _("restart command ignored")); action = ACTION_CONT; @@ -2297,7 +2297,7 @@ main (int argc, char **argv) signal_setup (SIG_DFL); - execv (argv[0], argv); + execv (pies_master_argv[0], pies_master_argv); } logmsg (LOG_INFO, _("%s %s terminated"), proginfo.package, proginfo.version); |