! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
redhat shutdown mode not working
Status:
CLOSED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Egmont Koblinger 2005-01-18 00:18:32 CET
The 'redhat' shutdown mode does not work.

Excerpts from the source code:

static char *halt_command[] = { "/usr/bin/halt", "halt", NULL };
static char *reboot_command[] = { "/usr/bin/reboot", "reboot", NULL };

[...]

  if (command == XFSM_SHUTDOWN_POWEROFF)
    argv = halt_command;
  else
    argv = reboot_command;

[...]

      execv (argv[0], argv);

Hence the halt or reboot command, which should be invoked without a real
parameter, is actually invoked with an extra halt or reboot parameter,
just as if I typed this at the command prompt: /sbin/halt halt

A possible workaround is to modify the execv call to this:

      execv (argv[0], argv+1);
Comment 1 Benedikt Meurer editbugs 2005-01-18 08:29:18 CET
Indeed, thanks! 

Bug #703

Reported by:
Egmont Koblinger
Reported on: 2005-01-18
Last modified on: 2009-07-14

People

Assignee:
Benedikt Meurer
CC List:
0 users

Version

Attachments

Additional information