summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-02-27 17:26:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-02-27 17:26:06 +0000
commite1920b37dfc358ae73ce55665b36877c99db4e5b (patch)
treeedc388bc9a36fc3c5d039ca3fe3647dcd8c71f88 /nuttx/sched
parentb1374fdcf46709b5e014dc9dbfc78e0394e8d6aa (diff)
downloadpx4-nuttx-e1920b37dfc358ae73ce55665b36877c99db4e5b.tar.gz
px4-nuttx-e1920b37dfc358ae73ce55665b36877c99db4e5b.tar.bz2
px4-nuttx-e1920b37dfc358ae73ce55665b36877c99db4e5b.zip
Add NSH kill command
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3322 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/sig_kill.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/sched/sig_kill.c b/nuttx/sched/sig_kill.c
index 7d36ac4b1..5e9125088 100644
--- a/nuttx/sched/sig_kill.c
+++ b/nuttx/sched/sig_kill.c
@@ -1,7 +1,7 @@
/************************************************************************
* sched/sig_kill.c
*
- * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -96,7 +96,7 @@ int kill(pid_t pid, int signo)
if (pid <= 0)
{
- *get_errno_ptr() = ENOSYS;
+ errno = ENOSYS;
return ERROR;
}
@@ -104,7 +104,7 @@ int kill(pid_t pid, int signo)
if (!GOOD_SIGNO(signo))
{
- *get_errno_ptr() = EINVAL;
+ errno = EINVAL;
return ERROR;
}
@@ -118,7 +118,7 @@ int kill(pid_t pid, int signo)
sdbg("TCB=0x%08x signo=%d\n", stcb, signo);
if (!stcb)
{
- *get_errno_ptr() = ESRCH;
+ errno = ESRCH;
sched_unlock();
return ERROR;
}