author | kergoth <kergoth> | 2003-03-14 20:40:06 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-03-14 20:40:06 (UTC) |
commit | 2c53d85583ebece42b3b4c155540cd6a01542731 (patch) (side-by-side diff) | |
tree | e30be18a7d98d9ebee5ac4a30bbe703b3a34cc28 | |
parent | 2d20b81186bd9a4795af736710d0cb205ead9a77 (diff) | |
download | opie-2c53d85583ebece42b3b4c155540cd6a01542731.zip opie-2c53d85583ebece42b3b4c155540cd6a01542731.tar.gz opie-2c53d85583ebece42b3b4c155540cd6a01542731.tar.bz2 |
Simplification.
-rw-r--r-- | core/launcher/desktop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 5ecc8bf..ba4fd66 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -740,7 +740,6 @@ void DesktopApplication::shutdown() void DesktopApplication::shutdown( ShutdownImpl::Type t ) { - char *path[] = { "/sbin", "/usr/sbin", 0 }; char *opt = 0; switch ( t ) { @@ -751,8 +750,9 @@ void DesktopApplication::shutdown( ShutdownImpl::Type t ) if ( opt == 0 ) opt = "-r"; - if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, path ) < 0 ) - ::syslog ( LOG_ERR, "Erroring execing shutdown\n" ); + if ( execl( "/sbin/shutdown", "shutdown", opt, "now", ( void* ) 0) < 0 ) + perror("shutdown"); +// ::syslog ( LOG_ERR, "Erroring execing shutdown\n" ); break; case ShutdownImpl::RestartDesktop: |