diff options
-rwxr-xr-x | meta/recipes-core/sysvinit/sysvinit/rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/rc b/meta/recipes-core/sysvinit/sysvinit/rc index 1f400d9e55..7ca41ae1ae 100755 --- a/meta/recipes-core/sysvinit/sysvinit/rc +++ b/meta/recipes-core/sysvinit/sysvinit/rc @@ -65,6 +65,9 @@ startup() { # Set onlcr to avoid staircase effect. stty onlcr 0>&1 + # Limit stack size for startup scripts + [ "$STACK_SIZE" == "" ] || ulimit -S -s $STACK_SIZE + # Now find out what the current and what the previous runlevel are. runlevel=$RUNLEVEL |