summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/thread.cc20
2 files changed, 7 insertions, 17 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 688045d81..e2bca1571 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2003-11-25 Christopher Faylor <cgf@redhat.com>
+
+ * thread.cc: Minor whitespace cleanup. Remove some obsolete code.
+
2003-11-24 Christopher Faylor <cgf@redhat.com>
* dtable.cc (build_fh_name): Set error in dummy fhandler when one is
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index d5a393691..36dbe026f 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -336,10 +336,11 @@ pthread::create (void *(*func) (void *), pthread_attr *newattr,
thread_printf ("CreateThread failed: this %p LastError %E", this);
magic = 0;
}
- else {
+ else
+ {
postcreate ();
ResumeThread (win32_obj_id);
- }
+ }
}
void
@@ -2902,11 +2903,6 @@ pthread_kill (pthread_t thread, int sig)
if (!pthread::is_good_object (&thread))
return EINVAL;
-#if 0
- if (thread->sigs)
- myself->setthread2signal (thread);
-#endif
-
int rval = raise (sig);
// unlock myself
@@ -2916,16 +2912,6 @@ pthread_kill (pthread_t thread, int sig)
extern "C" int
pthread_sigmask (int operation, const sigset_t *set, sigset_t *old_set)
{
-#if 0
- pthread *thread = pthread::self ();
-
- // lock this myself, for the use of thread2signal
- // two differt kills might clash: FIXME
-
- if (thread->sigs)
- myself->setthread2signal (thread);
-#endif
-
int rval = sigprocmask (operation, set, old_set);
// unlock this myself