epoch1970;352995 Wrote: > About the shutdown/suspend/reboot actions: I noticed the plugin behaves > differently after the command. > - after suspend, if my process is slow to send the actual suspend > command, my SB returns to normal state, and SC is running. This is good > for me. > - after reboot, the GUI blocks saying "Restarting", and the SC server > keeps on running until my process takes action (if it ever does). The > SC server must be restarted to unblock the GUI. > - after shutdown, something wild enough happens for my own process to > die. SC is restarted I believe. I am a bit puzzled as to why I should > die as a result of shutdown. My process is not a plugin, it is only > tied to SC via the CLI, with timeouts and connection retries; my > program is written in perl. > I would like to see all commands behave like suspend, of course, if it > is possible ? A lot of inaccuracies in the quoted message. First of all I died because of a broken pipe writing to the CLI socket; first mystery solved. I have sorted out my questions after a quick trace of In Util.pm:
1) For the "Restart" action, the $item data structure contains this value: 'dispblock' => 1 This is problematic when restart does not occur or is abnormally slow. I know we have blockers for that, but things happen. 2) For the "Shutdown" action, $item contains: 'dispblock' => 1 and 'stopsc' => 1 In the same circumstances, the problem of blocked display would occur. However, display blocking is interrupted by the restart of SC. This boils down to 2 questions: 1) Why stopsc ? Except for the "Restart SC" action, I am not sure I see the need. Furthermore, on my machine SC is *restarted* by stopsc. I don't feel well restarting so close to shutting down or worse, suspending. 2) Does 'dispblock=>0' look ugly with reboot or shutdown ? (this one I can test soon by myself.) And sorry again for the tone of the original message. The beam was in my eye. -- epoch1970 ------------------------------------------------------------------------ epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711 View this thread: http://forums.slimdevices.com/showthread.php?t=48521 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
