[hackers] [PATCH] add option to run command after screen is locked

2015-12-26 Thread Markus Teich
--- Heyho, I wrote a patch to support running arbitrary commands after slock has succesfully locked the screen. Mainly this is useful for suspending the system after it has been locked like `slock s2ram`. If there are no objections, I will merge it upstream. --Markus slock.c | 12 ++-

Re: [hackers] [slock] add option to run command after screen is locked

2015-12-26 Thread Markus Teich
Quentin Rameau wrote: > > + die("surf: execvp %s failed: %s\n", argv[1], strerror(errno)); > ^--- but that's slock here ;) Heyho Quentin, oops, will be fixed. --Markus

[hackers] [sbase] [PATCH] ed: Do not try to read-in a nonexistant file

2015-12-26 Thread Wolfgang Corcoran-Mathe
This fixes a segfault caused by running ed with a nonexistant filename argument, e.g. 'ed not_a_file_yet'. --- ed.c | 39 ++- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/ed.c b/ed.c index 8903957..599e575 100644 --- a/ed.c +++ b/ed.c @@ -609,