1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Fix signal handling (runtime exit with invalid argument) on 10.1

- Add missing sa_flags in main.c
- Bump PORTREVISION

While on it:
- Add LICENSE*

PR:		195284
Submitted by:	antonfb@hesiod.org
MFH:		2014Q4
This commit is contained in:
Thomas Zander 2014-12-07 19:25:52 +00:00
parent 9e40cd5867
commit f898d4c3a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374223
2 changed files with 14 additions and 2 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= rawrec
PORTVERSION= 0.9.991
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SUNSITE:S/%SUBDIR%/apps\/sound\/recorders/} \
SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
@ -10,6 +11,9 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE:S/%SUBDIR%/apps\/sound\/recorders/} \
MAINTAINER= ports@FreeBSD.org
COMMENT= Utility to record and playback raw audio data
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKDIR}/${DISTNAME}/copyright
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USES= gmake

View File

@ -1,5 +1,5 @@
--- main.c.orig Wed May 10 17:27:08 2006
+++ main.c Wed May 10 17:30:21 2006
--- main.c.orig 2006-01-22 03:40:17.000000000 +0100
+++ main.c 2014-12-07 19:14:39.778784753 +0100
@@ -14,6 +14,12 @@
#include "rawrec.h"
@ -13,3 +13,11 @@
int main(int argc, char *argv[])
{
/* Action for ignoring signals we don't want to deal with. */
@@ -118,6 +124,7 @@
strncpy(cnst_dflt_format, "s16_le", (size_t) (MAX_FORMAT_STRING_LENGTH + 1));
/* at the moment, this application goes with the default for most signals */
+ ignorer_act.sa_flags = 0;
ignorer_act.sa_handler = SIG_IGN;
/* because I'm unclear on how SIGIO is supposed to work, it's not
applicable here, and I'm paranoid */