]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/uipc_syscalls.c
xnu-1504.9.17.tar.gz
[apple/xnu.git] / bsd / kern / uipc_syscalls.c
index 94baa5bbcc05179d5a1ab3fc742c596eed5f3d16..3c0aec4000df39a72fe49e9f20a097ff7d3071d3 100644 (file)
@@ -191,17 +191,6 @@ socket(struct proc *p, struct socket_args *uap, int32_t *retval)
        if (error) {
                fp_free(p, fd, fp);
        } else {
-               thread_t                        thread;
-               struct uthread          *ut;
-               
-               thread = current_thread();
-               ut = get_bsdthread_info(thread);
-                       
-               /* if this is a backgrounded thread then throttle all new sockets */
-               if ( (ut->uu_flag & UT_BACKGROUND) != 0 ) {
-                       so->so_traffic_mgt_flags |= TRAFFIC_MGT_SO_BACKGROUND;
-                       so->so_background_thread = thread;
-               }
                fp->f_data = (caddr_t)so;
 
                proc_fdlock(p);