~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/patches/79_startpar_kfreebsd_mlockall.patch

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Michael Stapelberg
  • Date: 2012-07-28 20:09:11 UTC
  • mfrom: (9.1.47 sid)
  • Revision ID: package-import@ubuntu.com-20120728200911-1xa3ydm5a46lyrjd
Tags: 2.88dsf-41+jessie1
[ Roger Leigh ]
* initscripts:
  - Move /etc/nologin and /var/lib/initscripts/nologin to
    /run/nologin.  This means that nologin is always created on
    a writable, available filesystem.  Closes: #660862.
  - Remove code to generate /etc/mtab.  /etc/mtab is now always a
    symbolic link to /proc/mounts.  Closes: #630723.
  - Remove incorrect use of break in case blocks in vars.sh.  Thanks
    to Raphaël Hertzog for this patch.  Closes: #701031.
  - /etc/network/if-up.d/mountnfs: Skip lo if already configured.
    Closes: #705052.  Thanks to Timo Weingärtner.
* sysvinit:
  - Document length limit of 127 in inittab process field.  Thanks
    to Johannes Truschnigg.  Closes: #693960.
* sysv-rc:
  - Fix typo in invoke-rc.d(8).  Closes: #683804.  Thanks to
    Martin-Éric Racine.

[ Michael Stapelberg ]
* systemd: update check to look for /run/systemd/system.
  Closes: #703571
* sysv-rc:
  - Add systemd support to update-rc.d(8) and invoke-rc.d(8).
    Closes: #683084.
  - service(8): use systemctl on machines that run systemd.
    Closes: #704923

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Purpose: Fix kernel panic on kfreebsd
 
2
Fixes:   #672959
 
3
Author:  Petr Salinger
 
4
Status:  Not yet submitted upstream
 
5
---
 
6
--- a/startpar/startpar.c       2012-08-21 22:02:07.000000000 +0100
 
7
+++ b/startpar/startpar.c       2012-08-21 22:02:41.340814312 +0100
 
8
@@ -1122,9 +1122,11 @@
 
9
     }
 
10
 #endif
 
11
 
 
12
+#ifdef __linux__
 
13
   /* lock us into memory */
 
14
   if (geteuid() == 0)
 
15
     mlockall(MCL_CURRENT|MCL_FUTURE);
 
16
+#endif
 
17
   errno = 0;
 
18
 
 
19
   gettimeofday(&glastio, 0);