diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
commit | 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch) | |
tree | 0cfc4f0736babb895eb97a65c6defe632a0249c7 /net/rude/files/patch-rude__main.c | |
parent | editors/fte: update to 20110708 (diff) |
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Notes
Notes:
svn path=/head/; revision=363362
Diffstat (limited to 'net/rude/files/patch-rude__main.c')
-rw-r--r-- | net/rude/files/patch-rude__main.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net/rude/files/patch-rude__main.c b/net/rude/files/patch-rude__main.c new file mode 100644 index 000000000000..0f835cd476a8 --- /dev/null +++ b/net/rude/files/patch-rude__main.c @@ -0,0 +1,30 @@ +--- rude/main.c.orig Mon Jun 23 17:38:44 2003 ++++ rude/main.c Mon Jun 23 17:40:18 2003 +@@ -204,9 +204,7 @@ + */ + if((user_id == 0) && (priority > 0)){ + /* Try to lock the memory to avoid paging delays */ +- if(mlockall(MCL_CURRENT | MCL_FUTURE) < 0){ +- RUDEBUG1("rude: memory lock failed: %s\n", strerror(errno)); +- } ++ RUDEBUG1("rude: memory lock unsupported\n"); + + /* Switch to Round-Robin-Real-Time Scheduling */ + p.sched_priority = priority; +@@ -242,8 +240,6 @@ + RUDEBUG7("rude: program priority restored\n"); + } + +- /* Release the locked memory */ +- munlockall(); + } + + rude_exit1: +@@ -275,7 +271,6 @@ + } + } + +- munlockall(); + clean_up(); + exit(ret_val); + } /* main() */ |