r2121 - in trunk
dslinux_sonny_jim at dslinux.in-berlin.de
dslinux_sonny_jim at dslinux.in-berlin.de
Tue Jan 29 16:09:06 CET 2008
Author: sonny_jim
Date: 2008-01-29 16:09:06 +0100 (Tue, 29 Jan 2008)
New Revision: 2121
Log:
Change fork to vfork, add example nail.rc and integrate into build system
Modified: trunk/config/Configure.help
===================================================================
--- trunk/config/Configure.help 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/config/Configure.help 2008-01-29 15:09:06 UTC (rev 2121)
@@ -1464,6 +1464,9 @@
net-snmp (www.net-snmp.org) Simple Network Management Protocol implementation.
Build/Install the agent (snmpd).
+CONFIG_USER_NAIL
+ Nail is a mail user agent for Unix systems.
+
CONFIG_USER_NETSNMP_SNMPD
Build/Install the agent (snmpd).
Modified: trunk/config/config.in
===================================================================
--- trunk/config/config.in 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/config/config.in 2008-01-29 15:09:06 UTC (rev 2121)
@@ -504,6 +504,7 @@
fi
bool 'msntp' CONFIG_USER_MSNTP_MSNTP
+bool 'nail' CONFIG_USER_NAIL
bool 'nasl' CONFIG_USER_NESSUS_NASL
bool 'ncftp' CONFIG_USER_NCFTP_NCFTP
bool 'netcat' CONFIG_USER_NETCAT_NETCAT
Modified: trunk/user/Makefile
===================================================================
--- trunk/user/Makefile 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/user/Makefile 2008-01-29 15:09:06 UTC (rev 2121)
@@ -217,6 +217,7 @@
dir_$(CONFIG_USER_MSNTP_MSNTP) += msntp
dir_$(CONFIG_USER_MUSICBOX_MUSICBOX) += musicbox
dir_$(CONFIG_USER_MYSQL) += mysql
+dir_$(CONFIG_USER_NAIL) += nail
dir_$(CONFIG_USER_NANO) += nano
dir_$(CONFIG_USER_NCFTP_NCFTP) += ncftp
dir_$(CONFIG_USER_NESSUS_NASL) += nessus
Copied: trunk/user/nail (from rev 2120, tags/nail/nail-11.25)
Modified: trunk/user/nail/Makefile
===================================================================
--- tags/nail/nail-11.25/Makefile 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/user/nail/Makefile 2008-01-29 15:09:06 UTC (rev 2121)
@@ -108,3 +108,7 @@
mrproper: clean
rm -f config.h config.log LIBS
+
+romfs:
+ $(ROMFSINST) nail /usr/bin/nail
+ $(ROMFSINST) nail.rc.example /etc/nail.rc.example
Modified: trunk/user/nail/cmd2.c
===================================================================
--- tags/nail/nail-11.25/cmd2.c 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/user/nail/cmd2.c 2008-01-29 15:09:06 UTC (rev 2121)
@@ -580,7 +580,7 @@
extern int wait_status;
#endif
- switch (pid = fork()) {
+ switch (pid = vfork()) {
case -1:
perror("fork");
return(1);
Modified: trunk/user/nail/main.c
===================================================================
--- tags/nail/nail-11.25/main.c 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/user/nail/main.c 2008-01-29 15:09:06 UTC (rev 2121)
@@ -132,7 +132,7 @@
setlocale(LC_CTYPE, "");
setlocale(LC_COLLATE, "");
setlocale(LC_MESSAGES, "");
- mb_cur_max = MB_CUR_MAX;
+ //mb_cur_max = MB_CUR_MAX;
#if defined (HAVE_NL_LANGINFO) && defined (CODESET)
if (value("ttycharset") == NULL && (cp = nl_langinfo(CODESET)) != NULL)
assign("ttycharset", cp);
Added: trunk/user/nail/nail.rc.example
Modified: trunk/user/nail/popen.c
===================================================================
--- tags/nail/nail-11.25/popen.c 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/user/nail/popen.c 2008-01-29 15:09:06 UTC (rev 2121)
@@ -494,7 +494,7 @@
{
int pid;
- if ((pid = fork()) < 0) {
+ if ((pid = vfork()) < 0) {
perror("fork");
return -1;
}
Modified: trunk/user/nail/sendout.c
===================================================================
--- tags/nail/nail-11.25/sendout.c 2008-01-29 14:44:14 UTC (rev 2120)
+++ trunk/user/nail/sendout.c 2008-01-29 15:09:06 UTC (rev 2121)
@@ -767,7 +767,7 @@
* input for "mail", and exec with the user list we generated
* far above.
*/
- if ((pid = fork()) == -1) {
+ if ((pid = vfork()) == -1) {
perror("fork");
savedeadletter(input);
senderr++;
More information about the dslinux-commit
mailing list