Skip to content
This repository was archived by the owner on Oct 23, 2021. It is now read-only.

Commit ac970ce

Browse files
committed
Release version 0.28
1 parent 32e5c17 commit ac970ce

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set (INIT_SCRIPT_PATH ${PROJECT_SOURCE_DIR}/init)
66
set (SOURCE_PATH ${PROJECT_SOURCE_DIR}/src)
77

88
if(CMAKE_COMPILER_IS_GNUCXX)
9-
set (CMAKE_C_FLAGS "-Wall -lpthread")
9+
set (CMAKE_C_FLAGS "-Wall")
1010
set (CMAKE_C_FLAGS_DEBUG "-g3")
1111
set (CMAKE_C_FLAGS_RELEASE "-O3")
1212
set (CMAKE_EXE_LINKER_FLAGS "-s")

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v0.27 2016-06-20
2+
* Bug fixed
3+
14
v0.27 2016-06-12
25
* Automated installation
36
* Bug fixed

src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef __CONFIG_H__
2020
#define __CONFIG_H__
2121

22-
#define VERSION ("0.27")
22+
#define VERSION ("0.28")
2323

2424
/* Never modify this { */
2525
#define SUDODEV_GROUP ("sudodev")

src/sudodevd.c

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -258,27 +258,6 @@ sighupHandler (const int signo)
258258
pthread_mutex_unlock (&mutex);
259259
}
260260

261-
/* ========================================================================== *
262-
* Handle signals without a thread
263-
* ========================================================================== */
264-
static int
265-
sighandle (void)
266-
{
267-
if (-1 == actionBinding (SIGTERM, sigtermHandler))
268-
{
269-
say (mode, MSG_E, "actionBinding failed\n");
270-
return -1;
271-
}
272-
273-
if (-1 == actionBinding (SIGHUP, sighupHandler))
274-
{
275-
say (mode, MSG_E, "actionBinding failed\n");
276-
return -1;
277-
}
278-
279-
return 1;
280-
}
281-
282261
#if MULTITHREAD
283262
/* ========================================================================== *
284263
* A thread to handle signals
@@ -313,6 +292,28 @@ sighandler (void *arg)
313292

314293
return NULL;
315294
}
295+
#else
296+
297+
/* ========================================================================== *
298+
* Handle signals without a thread
299+
* ========================================================================== */
300+
static int
301+
sighandle (void)
302+
{
303+
if (-1 == actionBinding (SIGTERM, sigtermHandler))
304+
{
305+
say (mode, MSG_E, "actionBinding failed\n");
306+
return -1;
307+
}
308+
309+
if (-1 == actionBinding (SIGHUP, sighupHandler))
310+
{
311+
say (mode, MSG_E, "actionBinding failed\n");
312+
return -1;
313+
}
314+
315+
return 1;
316+
}
316317
#endif
317318

318319
/* ========================================================================== *

0 commit comments

Comments
 (0)