Commit 1f0e7769 authored by Marco Mariani's avatar Marco Mariani

cygwin: proper dcron 4.4 + C patch

parent 76fbfb69
......@@ -18,6 +18,13 @@ url = ${:_profile_base_location_}/${:filename}
filename = dcron-4.4.noroot.no.globals.patch
download-only = true
[dcron-patch-cygwin-ioctl]
recipe = hexagonit.recipe.download
md5sum = 394afc79f62936c772adcad8f1071abd
url = ${:_profile_base_location_}/${:filename}
filename = dcron-4.4.cygwin.ioctl.patch
download-only = true
[dcron]
recipe = slapos.recipe.cmmi
url = http://www.jimpryor.net/linux/releases/dcron-4.4.tar.gz
......@@ -31,9 +38,9 @@ make-options =
post-make-hook = ${dcron-hooks-download:location}/${dcron-hooks-download:filename}:post_make_hook
[dcron:cygwin]
share = /usr
promises =
/usr/sbin/cron.exe
patches =
${dcron-patch-nonroot:location}/${dcron-patch-nonroot:filename}
${dcron-patch-cygwin-ioctl:location}/${dcron-patch-cygwin-ioctl:filename}
[dcron-output]
# Shared binary location to ease migration
......
--- dcron-4.4.org/main.c 2010-01-18 16:27:31.000000000 +0100
+++ dcron-4.4/main.c 2013-09-19 14:31:19.590201000 +0200
@@ -235,7 +235,6 @@
if (setsid() < 0)
perror("setsid");
if ((fd = open("/dev/tty", O_RDWR)) >= 0) {
- ioctl(fd, TIOCNOTTY, 0);
close(fd);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment