From 1d4d7df3cca4fc5c7d8e81dc87d90950ac96fb70 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Fri, 15 Feb 2008 14:14:34 -0200 Subject: [PATCH] Replace remaining system("touch") with touch() (by Metalshark) Signed-off-by: Claudio Matsuoka --- Changelog | 1 + finit-mod.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index b484e3aa..ba7fe352 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ 0.2 () + - replace system("touch") with touch() in finit-mod (Metalshark) 0.1 (20081214) diff --git a/finit-mod.c b/finit-mod.c index b40955d3..3f3eed4d 100644 --- a/finit-mod.c +++ b/finit-mod.c @@ -287,7 +287,7 @@ void shutdown(int sig) { int fd; - system("/usr/bin/touch /tmp/shutdown"); + touch("/tmp/shutdown"); kill(-1, SIGTERM);