[Pkg-wmaker-commits] [wmrack] 04/97: update version number and fix signal handler
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Aug 22 02:41:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmrack.
commit 6314ac7c7b5bdb209184479392d08eb8e52a94ee
Author: Chris Waters <xtifr.w at gmail.com>
Date: Thu Mar 8 16:41:02 2012 -0800
update version number and fix signal handler
---
wmrack.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/wmrack.c b/wmrack.c
index b4e79b6..9f155bb 100644
--- a/wmrack.c
+++ b/wmrack.c
@@ -1,5 +1,5 @@
/*
- * $Id: wmrack.c,v 1.1.1.1 2001/02/12 22:26:04 xtifr Exp $
+ * $Id: wmrack.c,v 1.2 2001/02/14 10:27:48 xtifr Exp $
*
* WMRack - WindowMaker Sound Control Panel
*
@@ -14,6 +14,8 @@
*
*/
+#define WMR_VERSION "1.1"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -130,7 +132,7 @@ int main(int argc,char *argv[])
*/
void usage()
{
- fprintf(stderr,"wmrack - Version 1.0b5\n");
+ fprintf(stderr,"wmrack - Version " WMR_VERSION "\n");
fprintf(stderr,"usage: wmrack [OPTIONS] \n");
fprintf(stderr,"\n");
fprintf(stderr,"OPTION DEFAULT DESCRIPTION\n");
@@ -252,14 +254,14 @@ void parseCmdLine(int argc, char *argv[])
* initHandler()
*
* inits the signal handlers
+ * note: this function is not currently recursive (shouldn't be an issue)
*/
void initHandler()
{
- struct sigaction sa;
+ static struct sigaction sa;
sa.sa_handler=shutDown;
sigfillset(&sa.sa_mask);
sa.sa_flags=0;
- sa.sa_restorer=NULL;
sigaction(SIGTERM,&sa,NULL);
sigaction(SIGINT,&sa,NULL);
sigaction(SIGHUP,&sa,NULL);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmrack.git
More information about the Pkg-wmaker-commits
mailing list